{load header}
<!--/H-->

    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
        <!-- nav --><!-- nav -->
	<div class="main-title">
		<h2>{$item['name_ch']}-图片资料-{if $tt=="credit"}添加证件资料{elseif $tt=="office"}添加办公环境{/if}</h2>
	</div>
	<div class="tab-wrap">
		
		<div class="tab-content">
			
	 <form action="" method="post" class="form-horizontal">
		<div class="form-item">
			<label class="item-label">图片标题<span class="check-tips">（简短标题描述）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="title" value=""/>
			</div>
		</div>
                <div class="form-item">
                        <label class="item-label">图片资料<span class="check-tips"></span></label>
                        <div class="controls">
                                <input type="file" id="upload_picture_cover_id_03">
                                <input type="hidden" name="image_url" id="cover_id_cover_id_03" value=""/>
                                <div class="upload-img-box"><!--{if ($item['image_url']!='')}--><div class="upload-pre-item"><img src="{$item['image_url']}"/></div><!--{/if}--></div>
                        </div>
                        <script type="text/javascript" src="{eval echo base_url()}static/uploadify/jquery.uploadify.min.js"></script>
                        <script type="text/javascript">
                        //上传图片
                        /* 初始化上传插件 */
                        $("#upload_picture_cover_id_03").uploadify({
                                "height"          : 30,
                                "swf"             : "{eval echo base_url()}static/uploadify/uploadify.swf",
                                "fileObjName"     : "picture",
                                "buttonText"      : "上传图片",
                                "uploader"        : "http://static.tan66.com/upload/picture.html",//
                                //'formData' : {"action": "upload", "sid" : ""},
                                "width"           : 120,
                                'removeTimeout'	  : 1,
                                'fileTypeExts'	  : '*.jpg; *.png; *.gif;',
                                "onUploadSuccess" : uploadPicturecover_id_02,
                                'onFallback' : function() {
                                        alert('未检测到兼容版本的Flash.');
                                }
                        });
                        function uploadPicturecover_id_02(file, data){
                                var data = $.parseJSON(data);
                                var src = '';
                                if(data.status){
                                        $("#cover_id_cover_id_03").val(data.id);
                                        src = data.url || '' + data.path
                                        $("#cover_id_cover_id_03").parent().find('.upload-img-box').html(
                                                '<div class="upload-pre-item"><img src="' + src + '"/></div>'
                                        );

                                } else {
                                        updateAlert(data.info);
                                        setTimeout(function(){
                                                $('#top-alert').find('button').click();
                                                //$(that).removeClass('disabled').prop('disabled',false);
                                        },1500);
                                }
                        }
                        </script>
                </div>
                <div class="form-item">
                    <label class="item-label">排序</label>
                    <div class="controls">
                        <input type="text"  class="text input-small" name="sort" value="">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">是否显示<span class="check-tips">（启用后才能在首页显示）</span></label>
                    <div class="controls">
                        <label class="radio"><input type="radio" name="is_show" value="1" checked />显示</label>
                        <label class="radio"><input type="radio" name="is_show" value="0">隐藏</label>
                    </div>
                </div>
		<div class="form-item">
                    <input type="hidden" name="plat_en" value="{$item['name_en']}"/>
                    <input type="hidden" name="type" value="{$tt}"/>
                    <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
                    <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form>
	
		</div>
	</div>

<!--F-->{load footer}